package com.cap.bts.crmdp.dealer.masterinfo.dao;

import java.util.List;

import com.cap.bts.crmdp.dealer.masterinfo.domain.OtherProductModel;
import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.common.exception.AppException;

public interface IOtherProductDao extends IBaseDao<OtherProductModel, Long> {

    /**
     * 非轮胎数据新增
     * @param otherProductModel
     * @return
     * @throws AppException
     */
    public OtherProductModel insertOtherProductInfo(OtherProductModel otherProductModel)
                                                                                        throws AppException;

    /**
     * 删除非轮胎数据
     * @throws AppException
     */
    public void removeOtherProduct(OtherProductModel otherProductModel) throws AppException;
    
    public void removeAllOtherProduct() throws AppException;

    /**
     * 查询所有的非轮胎数据
     * @return
     * @throws AppException
     */
    public List<OtherProductModel> getAllTOtherProduct() throws AppException;

    public List<OtherProductModel> getViewForOtherProduct(String sql) throws AppException;

    /**
     * 根据编号查询信息
     * @param mfgrCode
     * @return
     * @throws AppException
     */
    public List<OtherProductModel> getOtherProductList(String mfgrCode) throws AppException;
    
    public boolean updateOtherProductInfo(OtherProductModel otherProductModel,Long id) throws AppException;

	public void batchInsert(List<OtherProductModel> productDataList) throws AppException;
}
